package com.pj.rabbit;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author 王存露
 * @date 2021/2/28
 */
@Component
public class Start implements CommandLineRunner {

    @Autowired
    private HelloSender helloSender;

    @Override
    public void run(String... args) throws Exception {
            helloSender.send();
    }
}
